package com.webcash.CNBoard.Controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;
import org.springframework.web.bind.support.SessionStatus;

import com.webcash.CNBoard.Model.Login;

@Controller
@RequestMapping("/logout")
@SessionAttributes("login")
public class LogoutController {

	@RequestMapping
	public String logoutAction(@ModelAttribute Login login, SessionStatus sessionstatus){
		sessionstatus.setComplete();
		return "redirect:/login";
	}
}
